package graphics.usb;

import java.awt.Color;

/**
 * 参数类
 * 
 * @author ephuizi@gmail.com
 *
 */
class DrawStringParam {
	String target;
	Color color;
	String fontName;
	int fontStyle;
	float scale;

	public DrawStringParam(String target, Color color, String fontName, int fontStyle, float scale) {
		this.target = target;
		this.color = color;
		this.fontName = fontName;
		this.fontStyle = fontStyle;
		if (scale > 1)
			this.scale = 1f;
		else if (scale <= 0.3)
			this.scale = 0.1f;
		else
			this.scale = scale;
	}
}
